package com.juphoon.quiz.service;

import com.juphoon.quiz.mapper.AnswerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional(rollbackFor = RuntimeException.class)
public class AnswerServiceImpl implements  AnswerService {

    @Autowired
    private AnswerMapper answerMapper;
    @Override
    public List<Map<String, String>> getAll() {
        System.err.println("进来了。。。。。。。。。。。。。。。。。。。。。");
        return answerMapper.getAll();
    }

    @Override
    public Integer postAnswer() {
        System.err.println("。。。。。。。。。。。。。。。。。。。。。");
        return null;
    }
}
